const mongoose = require('mongoose')
const appSchema = new mongoose.Schema({
    name: { type: String ,unique:true},
    APPID: {
        type: String ,unique:true
    },
    edition: [{
        value: { type: String ,unique:true},
        date: Date,
        content: Array, //描述
        url: String
    }], //版本
},{ timestamps: { createdAt: 'created', updatedAt: 'updated' } })

module.exports = mongoose.model('APP',appSchema)